package com.schoolgard.entitybean;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

@Entity
@Table(name = "HD_STATE")
public class HdState implements java.io.Serializable {

	// Fields

	private String guid;
	private Device device;
	private Date datetime;
	private Boolean onlineStatus;
	private String bandwidth;
	private Long cpuocpy;
	private Boolean sdinused;
	private Boolean sdfulled;
	private Long sdcap;
	private Long sdfree;
	private Long camlost;
	private Long wgerror;
	private Long softwareversion;
	private Long hardwareversion;
	private Long memocpy;
	private Long netocpy;

	@Id
	@Column(name = "GUID", unique = true, nullable = false, length = 64)
	public String getGuid() {
		return this.guid;
	}

	public void setGuid(String guid) {
		this.guid = guid;
	}

	@ManyToOne(fetch = FetchType.EAGER)
	@JoinColumn(name = "GUID", unique = true, nullable = false, insertable = false, updatable = false)
	public Device getDevice() {
		return this.device;
	}

	public void setDevice(Device device) {
		this.device = device;
	}

	@Temporal(TemporalType.DATE)
	@Column(name = "DATETIME", length = 7)
	public Date getDatetime() {
		return this.datetime;
	}

	public void setDatetime(Date datetime) {
		this.datetime = datetime;
	}

	@Column(name = "ONLINE_STATUS", precision = 1, scale = 0)
	public Boolean getOnlineStatus() {
		return this.onlineStatus;
	}

	public void setOnlineStatus(Boolean onlineStatus) {
		this.onlineStatus = onlineStatus;
	}

	@Column(name = "BANDWIDTH", length = 8)
	public String getBandwidth() {
		return this.bandwidth;
	}

	public void setBandwidth(String bandwidth) {
		this.bandwidth = bandwidth;
	}

	@Column(name = "CPUOCPY", precision = 10, scale = 0)
	public Long getCpuocpy() {
		return this.cpuocpy;
	}

	public void setCpuocpy(Long cpuocpy) {
		this.cpuocpy = cpuocpy;
	}

	@Column(name = "SDINUSED", precision = 1, scale = 0)
	public Boolean getSdinused() {
		return this.sdinused;
	}

	public void setSdinused(Boolean sdinused) {
		this.sdinused = sdinused;
	}

	@Column(name = "SDFULLED", precision = 1, scale = 0)
	public Boolean getSdfulled() {
		return this.sdfulled;
	}

	public void setSdfulled(Boolean sdfulled) {
		this.sdfulled = sdfulled;
	}

	@Column(name = "SDCAP", precision = 10, scale = 0)
	public Long getSdcap() {
		return this.sdcap;
	}

	public void setSdcap(Long sdcap) {
		this.sdcap = sdcap;
	}

	@Column(name = "SDFREE", precision = 10, scale = 0)
	public Long getSdfree() {
		return this.sdfree;
	}

	public void setSdfree(Long sdfree) {
		this.sdfree = sdfree;
	}

	@Column(name = "CAMLOST", precision = 10, scale = 0)
	public Long getCamlost() {
		return this.camlost;
	}

	public void setCamlost(Long camlost) {
		this.camlost = camlost;
	}

	@Column(name = "WGERROR", precision = 10, scale = 0)
	public Long getWgerror() {
		return this.wgerror;
	}

	public void setWgerror(Long wgerror) {
		this.wgerror = wgerror;
	}

	@Column(name = "SOFTWAREVERSION", precision = 10, scale = 0)
	public Long getSoftwareversion() {
		return this.softwareversion;
	}

	public void setSoftwareversion(Long softwareversion) {
		this.softwareversion = softwareversion;
	}

	@Column(name = "HARDWAREVERSION", precision = 10, scale = 0)
	public Long getHardwareversion() {
		return this.hardwareversion;
	}

	public void setHardwareversion(Long hardwareversion) {
		this.hardwareversion = hardwareversion;
	}

	@Column(name = "MEMOCPY", precision = 10, scale = 0)
	public Long getMemocpy() {
		return this.memocpy;
	}

	public void setMemocpy(Long memocpy) {
		this.memocpy = memocpy;
	}

	@Column(name = "NETOCPY", precision = 10, scale = 0)
	public Long getNetocpy() {
		return this.netocpy;
	}

	public void setNetocpy(Long netocpy) {
		this.netocpy = netocpy;
	}

}